/* -*-mode:java; c-basic-offset:2; -*- */
import java.io.*;
import com.jcraft.jzlib.*;

public class test_stream_deflate_inflate {
	public static void main(String[] args) {
		// cant`t use ObjectOutputStream and ObjectInputStream in J2ME.
		System.out
				.println("// cant`t use ObjectOutputStream and ObjectInputStream in J2ME.");

		// try{
		// ByteArrayOutputStream out=new ByteArrayOutputStream();
		// ZOutputStream zOut=new ZOutputStream(out, JZlib.Z_BEST_COMPRESSION);
		// ObjectOutputStream objOut=new ObjectOutputStream(zOut);
		// String hello="Hello World!";
		// objOut.writeObject(hello);
		// zOut.close();
		//
		// ByteArrayInputStream in=new ByteArrayInputStream(out.toByteArray());
		// ZInputStream zIn=new ZInputStream(in);
		// ObjectInputStream objIn=new ObjectInputStream(zIn);
		// System.out.println(objIn.readObject());
		// }
		// catch (Exception e){
		// e.printStackTrace();
		// }
	}
}
